# -*- coding: utf-8 -*-
"""
Created on Sun Oct 27 00:24:59 2019

@author: XCL01
"""


import random as R
import numpy as np
import matplotlib.pyplot as plt

def array_random():
    l = []
    a = 50
    b = 50
    for i in range (1000):
        x = R.randint(1, 4)
        if x == 1:
            a += 1
        elif x == 2:
            a -= 1
        elif x == 3:
            b += 1
        else:
            b -= 1
        l.append([a, b])
    return np.array(l)
x = array_random()
def plot_roam():
    plt.plot(x[:,0], x[:,1], color="red")
print(plot_roam(), array_random())